import request from '@/utils/request'


//生成统计数据
export function createStaData(day) {
    return request({
      url: `/staservice/sta/registerCount/${day}`,
      method: 'post'
    })
}

//获取统计数据
export function getStaData(searchObj) {
  return request({
    url: `/staservice/sta/showData/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
    method: 'get'
  })
}